package com.leadingsoft.pwxk.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leadingsoft.pwxk.model.FileDetail;
import com.leadingsoft.pwxk.repository.FileDetailRepository;
import com.leadingsoft.pwxk.services.AbstractService;

/**
 * 
 * @author ysh
 * @desc 获取发证后-许可证正本、副本、编码对照表信息-服务类
 */
@Service
public class FileDetailServiceImpl extends AbstractService<FileDetail> {

	@Autowired
	FileDetailRepository licenseInfoDetailRepository;

	@Override
	public void saveAll(List<FileDetail> models) {
		licenseInfoDetailRepository.saveAll(models);
	}

	@Override
	public void deleteAll() {
		licenseInfoDetailRepository.deleteAll();
	}

	@Override
	public void save(FileDetail model) {
		licenseInfoDetailRepository.save(model);
	}

}